$(function(){
	$('#main-calendar').fullCalendar({
		theme: false,			
		header: {
			left: 'prev,next today',
			center: 'title',
			right: 'month,basicWeek,basicDay'
		},
		editable: true,
		events: {
	        url: ajaxUrl + '/getMonthEvents',
	        cache: false,
			lazyFetching: true
	    },
		eventClick: function(calEvent, jsEvent, view) {
	        //alert('Event: ' + calEvent.title);
	        //alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
	        //alert('View: ' + view.name);
	
	        // change the border color just for fun
	        //$(this).css('border-color', 'red');
	
	    },
		eventMouseover: function(calEvent, jsEvent, view){
		},
		eventMouseout: function(calEvent, jsEvent, view){
		}

	});
});
